@import "./_reset.scss";
@import "./_transition.scss";

.m-t-30{
    margin-top: 30px;
}

.position-r{
    position: relative;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
        "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
        monospace;
}

.content-box {
    display: grid;
    height: 1080px;
    width: 1920px;
    grid-template-columns: repeat(2, 50%);
    grid-template-rows: repeat(2, 50%);
    color: white;
    
    .back-img {
        display: grid;
        padding: 30px;
        grid-template-columns: repeat(2, 50%);
        grid-template-rows: repeat(2, 50%);
        background: url('../images/bg.png') round;
        &>div{
            padding-bottom: 15px; 
        }
        .pie-bg{
            width: 100%;
            height: 225px;
            position: absolute;
            animation: big 5s ease-out; 
            animation-iteration-count: infinite;
            background: url('../images/pie_bg.png') no-repeat;
            background-position: 50% 50%;
        }
    }

    .user-bg-img,
    .money-info {
        padding: 30px 30px 30px 0;
        background: url('../images/bg.png') round;
    }

    .user-bg-img {
        .user-title {
            height: 38px;
            padding-left: 50px;
            background: url('../images/user_bg.png') no-repeat;

            .user-icon {
                width: 35px;
                height: 28px;
                display: block;
                float: left;
                margin-right: 10px;
            }

            span {
                float: left;
                padding: 6px 5px 12px 0;
                font-size: 18px;
                font-weight: bold;
                border-bottom: 2px solid #28b1c7;
            }
        }

        .user-info {
            position: relative;
            width: 100%;
            height: 478px;
            font-size: 22px;
            font-weight: bold;
            background: url("../images/user_stage.png") no-repeat;
            background-position: center;

            .user-info-box {
                height: 100%;
                width: 650px;
                margin: auto;
                transform-style: preserve-3d;
                transform: rotateX(-6deg);
                animation: fn 25s;
                animation-iteration-count: infinite;
                animation-timing-function: linear;
                .user-info-list {
                    position: absolute;
                    width: 166px;
                    height: 166px;
                    left: 250px;
                    top: 100px;
                    text-align: center;
                    padding: 23px 10px;
                    border-radius: 2px;
                    box-sizing: border-box;
                    background: rgba(73, 233, 252, .3);
                    backface-visibility: hidden;

                    &:hover {
                        .user-info-box {

                            animation-play-state: paused;
                        }
                    }

                    i {
                        position: absolute;
                        border: 2px solid;
                        width: 12px;
                        height: 12px;
                        border-radius: 3px;

                        &:nth-child(1) {
                            top: 0;
                            left: 0;
                            border-color: #4cecff transparent transparent #4cecff;
                        }

                        &:nth-child(2) {
                            top: 0;
                            right: 0;
                            border-color: #4cecff #4cecff transparent transparent;
                        }

                        &:nth-child(3) {
                            bottom: 0;
                            right: 0;
                            border-color: transparent #4cecff #4cecff transparent;
                        }

                        &:nth-child(4) {
                            bottom: 0;
                            left: 0;
                            border-color: transparent transparent #4cecff #4cecff;
                        }
                    }

                    .user-label {
                        margin-bottom: 50px;
                        margin-top: 10px;
                    }

                    .user-data {
                        width: auto;
                        height: 40px;
                        color: #4cecff;
                        background: #0d3550;
                        line-height: 40px;
                    }
                }
            }
        }
    }

    .money-info {
        padding-left: 30px;
        .money-icon {
            width: 34px;
            height: 34px;
            float: left;
            margin-right: 10px;
        }

        .par-box {
            position: relative;
            transform-style: preserve-3d;
            width: 580px;
            height: 447px;
            margin: 0 auto;
            transform: rotateX(-1deg);
            transform-origin: center;
            animation:change 25s linear infinite; 
            .par-list{
                width: 580px;
                height: 447px;
                font-weight: bold;
                font-size: 14px;
                position: absolute;
                margin: auto;
                backface-visibility: hidden;
                .par-title {
                    width: 100%;
                    height: 63px;
                    padding: 20px 15px 0 35px;
                    box-sizing: border-box;
                    text-align: right;
                    background: url('../images/money_title_bg.png') no-repeat;

                    i {
                        height: 25px;
                        border-right: 2px solid #00c6ff;
                        margin: 0 15px;
                    }

                    .par-remarks {
                        color: #00c6ff;
                    }
                }

                .par-content {
                    width: 100%;
                    height: 385px;
                    padding: 15px;
                    box-sizing: border-box;
                    background: rgba(0, 198, 255, .1);
                }
            }
        }
    }

    .title-bg {
        height: 22px;
        line-height: 22px;
        padding-left: 30px;
        margin-bottom: 10px;
        font-size: 12px;
        font-weight: bold;
        background: url('../images/title_bg.png') no-repeat;
    }

    .tab-bg {
        height: 100%;
        width: 100%-2;
        padding: 10px;
        background-size: 100% 100%;
        font-size: 12px;
        background: url('../images/table_bg.png') no-repeat;
        background-size: 100% 100%-12;
        box-sizing: border-box;

        .money-sum,
        .sys-sum {
            line-height: 26px;
            padding-left: 10px;
            display: inline-block;
        }

        .money-sum {
            div {
                width: 120px;
                font-size: 14px;
                text-align: center;
                color: #3fecff;
                display: inline-block;
            }
        }

        .title-box {
            float: right;

            .sys-title1,
            .sys-title2 {
                display: inline-block;
                height: 22px;
                line-height: 22px;
                font-size: 14px;
                color: #3fecff;
                margin-right: 20px;
            }

            .sys-title1 {
                i {
                    display: inline-block;
                    margin-right: 10px;
                    width: 25px;
                    height: 6px;
                    background: #3fecff;
                }

                span {
                    vertical-align: middle;
                    color: #fff;
                }
            }

            .sys-title2 {
                .icon-box {
                    display: inline-block;
                    position: relative;
                    margin-right: 10px;
                    width: 25px;
                    height: 2px;
                    background: #ffe400;

                    i {
                        position: absolute;
                        width: 10px;
                        height: 10px;
                        border-radius: 50%;
                        background: #ffe400;
                        top: -4px;
                        left: 8px;
                    }
                }

                span {
                    vertical-align: middle;
                    color: #fff;
                }
            }
        }

        .square-list {
            display: block;
            line-height: 22px;
            float: right;
            padding-right: 12px;

            i {
                display: inline-block;
                width: 6px;
                height: 6px;
                margin-left: 4px;

                &:nth-child(1) {
                    background-color: #041f35;
                }

                &:nth-child(2) {
                    background-color: #227a8d;
                }

                &:nth-child(3) {
                    background-color: #3fecff;
                }
            }
        }

        .tab-box {
            width: 100%;
            padding: 4px 6px;
            box-sizing: border-box;

            table {
                width: 100%;
                text-align: center;

                tr {
                    height: 24px;
                    line-height: 24px;
                }

                tbody tr {
                    &:nth-child(even) {
                        background-color: rgba(16, 94, 120, .3)
                    }
                }

                thead tr {
                    background-color: rgba(16, 94, 120, .3);

                    th:first-child {
                        min-width: 70px;
                    }
                }
            }
        }

        .grid-tab {
            display: grid;
            padding: 8px 20px 5px 20px;
            height: 141px;
            grid-template-columns: 50% 50%;
            grid-template-rows: 33.33% 33.33% 33.33%;

            .item-box {
                padding-right: 30px;
            }

            div {
                display: inline-block;
            }

            .money-text {
                width: 100px;
                line-height: 18px;
                float: right;

                span {
                    display: block;
                }
            }
        }

        .sys-box {
            position: relative;
            height: 152px;
            padding: 10px;
            box-sizing: border-box;
            .sys-card {
                position: absolute;
                width: 236px;
                height: 140px;
                padding: 20px 20px 20px 35px;
                line-height: 24px;
                box-sizing: border-box;
                font-weight: bold;
                margin: 0 auto;
                background: url('../images//sys_bg.png') no-repeat;
                &:nth-child(1){
                    animation:card1 8s linear infinite; 
                }
                &:nth-child(2){
                    animation:card2 8s linear infinite; 
                }
                &:nth-child(3){
                    animation:card3 8s linear infinite; 
                }
                span {
                    display: inline-block;
                }

                .sys-label {
                    width: 65px;
                    text-align: left;
                }

                .sys-val {
                    color: #3fecff;
                }
            }
        }

        .sys-tab {
            padding: 0 8px 8px;
            box-sizing: border-box;
            display: grid;
            height: 150px;
            line-height: 20px;
            text-align: center;
            grid-template-columns: repeat(3, 33.33%);
            grid-template-rows: repeat(5, 20px);
            grid-row-gap: 10px;

            span {
                background-color: rgba(16, 94, 120, .3);

                &:nth-child(3n+1) {
                    padding-left: 12px;
                    text-align: left;
                }
            }

            i {
                display: inline-block;
                width: 16px;
                height: 16px;
                border-radius: 50%;
                background-color: #19b1c9;
                text-align: center;
                line-height: 16px;
                margin-right: 8px;
            }
        }

        .tab-th {
            display: grid;
            height: 28px;
            line-height: 26px;
            text-align: center;
            grid-template-columns: repeat(3, 33.33%);
        }
    }
}